<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller {

	public function _initialize (){
		
		//验证是否登录
		if(!isset($_SESSION['user']['id'])|| empty($_SESSION['user']['id'])){
			$this->redirect("/Login/login");
			exit;
		}
	}
	
	//空方法
	public function _empty(){

		$this->display("Public/404");
	}


}